#include "cpu/exec/template-start.h"

#define instr test

static void do_execute() {
	DATA_TYPE res = op_src->val & op_dest->val;
	cpu.eflags.OF = 0;
	cpu.eflags.CF = 0;
	cpu.eflags.SF = res >> ((DATA_BYTE << 3) - 1); //符号标志位
	cpu.eflags.ZF = !res; //零标志位
	res = !(res & 1); //提取末位
	cpu.eflags.PF = res; //奇偶校验
	print_asm_template2();
}

make_instr_helper(i2a)
make_instr_helper(i2rm)
make_instr_helper(r2rm)

#include "cpu/exec/template-end.h"
